import request from '@/utils/request';

/**
 * ip列表
 */
export const ipVlanList = (data) => {
    return request({ url: `/vlan/list`, method: 'get', params:data });
  };

/* ip新增 */  
export const ipVlanAdd= (data) => {
    return request({ url: `/vlan`, method: 'post', data });
  };
  /* ip修改 */  
  export const ipVlanEdit= (data) => {
    return request({ url: `/vlan`, method: 'put', data });
  };
  /* ip删除 */  
  export const ipVlanDel= (data) => {
    return request({ url: `/vlan`, method: 'delete', data });
  };
/* 检测 */
export const ipCheck= (data) => {
    return request({ url: `/vlan/check`, method: 'post', data });
  };


  /* 活动IP */
  export const ipActiveIpList = (data) => {
    return request({ url: `/activeIp/list`, method: 'get', params:data });
  };
  /* 黑IP */
  export const ipBlackIpList = (data) => {
    return request({ url: `/blackIp/list`, method: 'get', params:data });
  };
  /* 白ip */
  export const ipWhiteIpList = (data) => {
    return request({ url: `/whiteIp/list`, method: 'get', params:data });
  };

  /* 添加白ip */
  export const whiteIpAdd= (data) => {
    return request({ url: `/whiteIp`, method: 'post', data });
  };
    /* 删除白ip */
    export const whiteIpDel= (data) => {
        return request({ url: `/whiteIp`, method: 'delete', data });
      };

  

  
